package cn.com.yto56.cainiao.exponent.elasticsearch.service;

import cn.com.yto56.basic.framework.model.rest.MutiRequest;
import cn.com.yto56.basic.framework.plugin.chain.config.ExecutorRequest;
import cn.com.yto56.cainiao.exponent.dto.ExpUploadRequest;
import cn.com.yto56.cainiao.exponent.dto.ExponentRequest;
import org.springframework.web.multipart.MultipartFile;

public interface ExponentService {

    /**
     * 创建模板.
     * @param templateName 模板名称.
     */
    void buildOriginIndiceTemp(String templateName);

    /**
     * 分析样单
     * @param file
     * @return
     */
    ExecutorRequest<ExpUploadRequest, MutiRequest<ExponentRequest>> executePlugIns(MultipartFile file);
}
